import request from "./request.js"
// 获取验证码
export function getSmsCode(params) {
	return request("/member/user/getSmsCode", "GET", params)
};
// 验证码登录
export function userLogin(params) {
	return request("/member/user/userLogin", "POST", params)
};
// 账号密码登录
export function passwordLogin(params) {
	return request("/member/user/accountAndPasswordLogin", "POST", params)
};
// 忘记密码
export function forgetThePassword(params) {
	return request("/member/user/forgetThePassword", "GET", params)
};
// 注册
export function userRegister(params) {
	return request("/member/user/userRegister", "POST", params)
};
// 实名认证
export function realName(params) {
	return request("/sys/user/realnameAuthentication/" + params.id, "GET", params)
};
// 获取用户信息
export function getUserInfo(params) {
	return request("/member/user/getUserById", "GET", params)
};
// 根据userId查询对应推荐码
export function selectByUserId(params) {
	return request("/memberRecBase/memberRecBase/selectByUserId/" + params.userId, "POST", params)
};
// 查询用户的所有积分
export function getSumByUserId(params) {
	return request("/memberPoint/memberPoint/getSumByUserId", "GET", params)
};
// 用户积分记录表-分页列表查询
export function memberPointList(params) {
	return request("/memberPoint/memberPoint/list", "GET", params)
};
// 查询当前用户所有的权益包
export function getAllEquityByUserId(params) {
	return request("/memberEquity/memberEquity/getAllEquityByUserId", "GET", params)
};
// 查看我的推荐
export function myRecommend(params) {
	return request("/memberRecShip/memberRecShip/myRecommend/" + params.memberId, "GET", params)
};
// 根据userId查询可提现余额
export function userAmount(params) {
	return request("/memberIncome/memberIncome/queryByUserIdAmounSum", "GET", params)
};
// 申请提现操作
export function askTakeIncome(params) {
	return request("/memberIncome/memberIncome/askTakeIncome", "PUT", params)
};
// 提现记录
export function takeList(params) {
	return request("/memberIncomeTakeBase/memberIncomeTakeBase/list", "GET", params)
};
// 获取用户列表
export function getUserList(params) {
	return request("/sys/user/list", "GET", params)
};
// 商家给用户添加积分
export function merchantsAddPointsToUsers(params) {
	return request("/shipMerchantAmountLog/shipMerchantAmountLog/merchantsAddPointsToUsers", "POST", params)
};
// 新闻列表
export function newList(params) {
	return request("/shipAdvertisement/shipAdvertisement/list", "GET", params)
};
// 新闻详情
export function newById(params) {
	return request("/shipAdvertisement/shipAdvertisement/queryById", "GET", params)
};
// 商家变动消费积分记录表
export function shopPointLogList(params) {
	return request("/shipMerchantPointLog/shipMerchantPointLog/list", "GET", params)
};
// 图片上传
export function upload(params) {
	return request("/sys/common/upload", "POST", params)
};
// 编辑用户信息
export function editUser(params) {
	return request("/sys/user/edit", "POST", params)
};
// 商家申请
export function applyAdd(params) {
	return request("/shipMerchantReview/shipMerchantReview/add", "POST", params)
};
// 商家申请列表
export function getApplyList(params) {
	return request("/shipMerchantReview/shipMerchantReview/list", "GET", params)
};
// 根据userId查询当前是否有待审核记录
export function applyStatus(params) {
	return request("/shipMerchantReview/shipMerchantReview/queryByUserId", "GET", params)
};
// 可提现余额表
export function memberIncomeList(params) {
	return request("/memberIncome/memberIncome/list", "GET", params)
};
// 根据商家ID查询当前剩余可用的积分
export function getALlAmountByUserId(params) {
	return request("/shipMerchantAmountLog/shipMerchantAmountLog/getALlAmountByUserId/" + params.userId, "POST", params)
};
// 分红列表
export function dividendList(params) {
	return request("/shipMemberDividend/shipMemberDividend/list", "GET", params)
};
// 根据keyStr获取对应数据
export function getOne(params) {
	return request("/universalGlobally/universalGlobally/getOne", "GET", params)
};
// 提现规格列表
export function speList(params) {
	return request("/shipSpecificationAmount/shipSpecificationAmount/list", "GET", params)
};